home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Communication / dbf-to-html / READ ME < prev    next >
Text File  |  1996-02-24  |  3KB  |  62 lines

  1. dbf-to-html:   HTML publishing from a database.  
  2.  
  3. This application merges a database with an html template file to create an html file for every record in a database. It also creates an index html file with hyperlinks to each html file created. No programming required.
  4.  
  5. I wrote this application as a result of having to write a lot of messy, hard-wired programs to generate html files from dbf records. Instead of embedding html in  hard-wired, database specific programs, I decided to write an app that would merge a database file with an html file, just like a mail merge.
  6.  
  7. This applications requires FoxPro/Mac, but will work on any dbf file. If you are using FileMaker Pro, just export to dbf format.
  8.  
  9. Directions:
  10.  
  11. Create an HTML template file and insert field names from your database delimitted by "%%" .  A sample html template file and database are included.
  12.  
  13. Example:
  14. *---------------------------------------------
  15. <HTML><BODY>
  16.  
  17. <CENTER><H2>%%SCHOOL%%</H2></CENTER>
  18.  
  19. Located in beatiful %%CITY%%, %%STATE%%, the %%SCHOOL%% is a very good school
  20. <BR>
  21.  
  22. [<A HREF="/">Home</A> |
  23. <A HREF="index.html">School List</A>]
  24.  
  25. </BODY></HTML>
  26. *---------------------------------------------
  27.  
  28. Start htmlMaker:
  29.  
  30. 1) From FoxPro "Run" menu pad,  select "Application..." and run "dbf-to-html".  
  31.  
  32. 2) You will be prompted to select an html template file.  Select "sample.html", or any other html template text file.
  33.  
  34. 3) You will be prompted to select a database.  Select "Sample.dbf", or any other dbf file.
  35.  
  36. 3) A screen will appear with two list boxes, each containing the field names from the selected database file. 
  37.  
  38. From the list on the left, select the field that will be used for the html file names.  It is best to use a unique id field.  From the list on the right, select the field to be used for the displayed hypertext links in the index file that will be created: 
  39.    
  40. <A HREF="0003.html">The Maret School</A><br>
  41.  
  42. Get it?
  43.  
  44. Press OK and that's it. Your database will be merged with your html template file, creating an html file for every record in the database file _and_ an index file.
  45.  
  46.  
  47. NOTE:
  48. In order to view the html files locally  through a browser (webserver served files will work without modification),  you'll have to use FileTyper to change the type and creator codes to SimpleText or something besides FoxPro's type and creator codes. 
  49. Make sure your field names in the html template file match exactly field names in the dbf or you'll get an error.
  50.  
  51.  
  52.  
  53.  
  54. dbf-to-html is shareware: $10 per Mac.  
  55. Hope you like it.
  56.  
  57. Thanks,
  58.  
  59. Andrew Warner                                 awarner@cais.com
  60. 2243  47th st, NW
  61. Washington, DC 20007
  62.